package com.abc.config.demo.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

//通过Feign将远程调用封装成api形式的调用
@FeignClient(value = "nacos-service-provider")
public interface EchoService {

    // @GetMapping的url就是是服务提供者的url
    @GetMapping(value = "/echo/{string}")
    String echo(@PathVariable("string") String string);

}